< previous page page_343 next page >

Page 343
with a degree two polynomial so there is no reason to use a degree four polynomial. In fact, if you use a polynomial of degree greater than two, the curve may wiggle around in an arbitrary manner and still pass exactly through all the points.
To prevent this kind of strangeness, program LeastSq3 allows the degree to be no more than one less than the number of points. If you enter a greater value, the program reduces it.
If you use a polynomial of high enough degree, you may eventually find a curve that passes through each of your data points exactly. This is not necessarily a good thing, however. Figure 11.12 shows a curve that passes exactly through each of the data points. While this curve matches the data closely, it does not correctly convey the fact that these points lie very close to a straight line. A linear least squares fit would make this more obvious and emphasize an important trend in the data values.
For these reasons, you should start by trying to fit your data to a polynomial that agrees with your knowledge of the data. If you think the points were produced by a linear process, use a linear least squares fit. If you think the data values start small, rise as X increases, and then drop off again, try using a quadratic fit. Only if you have some reason to believe that the processes that generated the data included higher-degree effects should you attempt to fit the data with polynomials of high degree.
Many programs need only to present a smoothed version of the data; the exact shape of the function is unimportant. In that case, one of the techniques described in the following sections is probably more appropriate than a polynomial least squares curve.
0343-01.jpg
Figure 11.12
A high-degree polynomial may fit the data too
closely, hiding the data's underlying structure.

 
< previous page page_343 next page >